<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: qwt_round_scale_draw.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qwt__round__scale__draw_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qwt_round_scale_draw.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Qwt Widget Library</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 1997   Josef Wilgen</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This library is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *****************************************************************************/</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;qwt_round_scale_draw.h&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;qwt_painter.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;qwt_scale_div.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;qwt_scale_map.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;qwt_text.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;qwt_math.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;qpainter.h&gt;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">class </span>QwtRoundScaleDraw::PrivateData</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;{</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    PrivateData()</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        : <a class="code" href="class_qwt_round_scale_draw.html#a33cf08c74686051f0a8d66984be8aec5">center</a>( 50.0, 50.0 )</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        , <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a>( 50.0 )</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        , startAngle( -135.0 )</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;        , endAngle( 135.0 )</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    {</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    }</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    QPointF <a class="code" href="class_qwt_round_scale_draw.html#a33cf08c74686051f0a8d66984be8aec5">center</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a>;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keywordtype">double</span> startAngle;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordtype">double</span> endAngle;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;};</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="class_qwt_round_scale_draw.html#a9c44d19488567825d826528b701587c8">   44</a></span>&#160;<a class="code" href="class_qwt_round_scale_draw.html#a9c44d19488567825d826528b701587c8">QwtRoundScaleDraw::QwtRoundScaleDraw</a>()</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;{</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    m_data = <span class="keyword">new</span> QwtRoundScaleDraw::PrivateData;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <a class="code" href="class_qwt_round_scale_draw.html#a219e0db15594f297ae6ff769fd6c0485">setRadius</a>( 50 );</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <a class="code" href="class_qwt_abstract_scale_draw.html#a2582c30e82f8977877ac8044253f1fb8">scaleMap</a>().<a class="code" href="class_qwt_scale_map.html#a994240e446986112f196a65657dc9755">setPaintInterval</a>( m_data-&gt;startAngle, m_data-&gt;endAngle );</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;}</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="class_qwt_round_scale_draw.html#a81583432e629cd8a14524b05fabb4731">   53</a></span>&#160;<a class="code" href="class_qwt_round_scale_draw.html#a81583432e629cd8a14524b05fabb4731">QwtRoundScaleDraw::~QwtRoundScaleDraw</a>()</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;{</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keyword">delete</span> m_data;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;}</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="class_qwt_round_scale_draw.html#a219e0db15594f297ae6ff769fd6c0485">   66</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_round_scale_draw.html#a219e0db15594f297ae6ff769fd6c0485">QwtRoundScaleDraw::setRadius</a>( <span class="keywordtype">double</span> radius )</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;{</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    m_data-&gt;radius = <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a>;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;}</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">   79</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">QwtRoundScaleDraw::radius</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;radius;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;}</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="class_qwt_round_scale_draw.html#a7be4951c2998474a79e4f1d621ea412a">   90</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_round_scale_draw.html#af7e08b85826c5e1e5b1762fa07830107">QwtRoundScaleDraw::moveCenter</a>( <span class="keyword">const</span> QPointF&amp; center )</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;{</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    m_data-&gt;center = <a class="code" href="class_qwt_round_scale_draw.html#a33cf08c74686051f0a8d66984be8aec5">center</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;}</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="class_qwt_round_scale_draw.html#a33cf08c74686051f0a8d66984be8aec5">   96</a></span>&#160;QPointF <a class="code" href="class_qwt_round_scale_draw.html#a33cf08c74686051f0a8d66984be8aec5">QwtRoundScaleDraw::center</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;center;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;}</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="class_qwt_round_scale_draw.html#a5d85678fdb9fbb4d622425aab9ecc681">  118</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_round_scale_draw.html#a5d85678fdb9fbb4d622425aab9ecc681">QwtRoundScaleDraw::setAngleRange</a>( <span class="keywordtype">double</span> angle1, <span class="keywordtype">double</span> angle2 )</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;{</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">#if 0</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    angle1 = qBound( -360.0, angle1, 360.0 );</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    angle2 = qBound( -360.0, angle2, 360.0 );</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    m_data-&gt;startAngle = angle1;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    m_data-&gt;endAngle = angle2;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;startAngle == m_data-&gt;endAngle )</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    {</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        m_data-&gt;startAngle -= 1;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        m_data-&gt;endAngle += 1;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    }</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <a class="code" href="class_qwt_abstract_scale_draw.html#a2582c30e82f8977877ac8044253f1fb8">scaleMap</a>().<a class="code" href="class_qwt_scale_map.html#a994240e446986112f196a65657dc9755">setPaintInterval</a>( m_data-&gt;startAngle, m_data-&gt;endAngle );</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;}</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="class_qwt_round_scale_draw.html#a4e09df3cb4c1868264653a32ccaebebf">  145</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_round_scale_draw.html#a4e09df3cb4c1868264653a32ccaebebf">QwtRoundScaleDraw::drawLabel</a>( QPainter* painter, <span class="keywordtype">double</span> value )<span class="keyword"> const</span></div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> tval = <a class="code" href="class_qwt_abstract_scale_draw.html#a2582c30e82f8977877ac8044253f1fb8">scaleMap</a>().<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( value );</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <span class="keywordflow">if</span> ( ( tval &gt;= m_data-&gt;startAngle + 360.0 )</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        || ( tval &lt;= m_data-&gt;startAngle - 360.0 ) )</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    {</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    }</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_text.html">QwtText</a> <a class="code" href="class_qwt_abstract_scale_draw.html#ac1d855f856b746559c41f4f06ec5442d">label</a> = <a class="code" href="class_qwt_abstract_scale_draw.html#a9325b265f351e9135cdbb9368e53f68a">tickLabel</a>( painter-&gt;font(), value );</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_scale_draw.html#ac1d855f856b746559c41f4f06ec5442d">label</a>.<a class="code" href="class_qwt_text.html#aa7a14283b812f50234fa0ee960e65307">isEmpty</a>() )</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a> = m_data-&gt;radius;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_scale_draw.html#a8a69a890d349a9e03c145b20b5835e8a">hasComponent</a>( <a class="code" href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a1f23d080ce1229a0c4f70469e88acce0">QwtAbstractScaleDraw::Ticks</a> ) ||</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        <a class="code" href="class_qwt_abstract_scale_draw.html#a8a69a890d349a9e03c145b20b5835e8a">hasComponent</a>( <a class="code" href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a61a6c4f4dec2b089edfb655e2b21c3a2">QwtAbstractScaleDraw::Backbone</a> ) )</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    {</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a> += <a class="code" href="class_qwt_abstract_scale_draw.html#ad3b290a76426a1a22a870e84c1655666">spacing</a>();</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    }</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_scale_draw.html#a8a69a890d349a9e03c145b20b5835e8a">hasComponent</a>( <a class="code" href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a1f23d080ce1229a0c4f70469e88acce0">QwtAbstractScaleDraw::Ticks</a> ) )</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a> += <a class="code" href="class_qwt_abstract_scale_draw.html#a52fe17714fe96564b0d88af27e96e58f">tickLength</a>( <a class="code" href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736cadda390d4186a0ff20ece95d986c1ae60">QwtScaleDiv::MajorTick</a> );</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keyword">const</span> QSizeF sz = <a class="code" href="class_qwt_abstract_scale_draw.html#ac1d855f856b746559c41f4f06ec5442d">label</a>.<a class="code" href="class_qwt_text.html#a40ec54788db82cfb2941cff8c4621c15">textSize</a>( painter-&gt;font() );</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> arc = qwtRadians( tval );</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160; </div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> x = m_data-&gt;center.x() +</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        ( <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a> + sz.width() / 2.0 ) * std::sin( arc );</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> y = m_data-&gt;center.y() -</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        ( <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a> + sz.height() / 2.0 ) * std::cos( arc );</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keyword">const</span> QRectF r( x - sz.width() / 2, y - sz.height() / 2,</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;        sz.width(), sz.height() );</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <a class="code" href="class_qwt_abstract_scale_draw.html#ac1d855f856b746559c41f4f06ec5442d">label</a>.<a class="code" href="class_qwt_text.html#ad81ee227016361a0362081bc67c301da">draw</a>( painter, r );</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;}</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160; </div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="class_qwt_round_scale_draw.html#afe622c468eb6229b40adde688de21432">  190</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_round_scale_draw.html#afe622c468eb6229b40adde688de21432">QwtRoundScaleDraw::drawTick</a>( QPainter* painter, <span class="keywordtype">double</span> value, <span class="keywordtype">double</span> len )<span class="keyword"> const</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    <span class="keywordflow">if</span> ( len &lt;= 0 )</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160; </div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> tval = <a class="code" href="class_qwt_abstract_scale_draw.html#a2582c30e82f8977877ac8044253f1fb8">scaleMap</a>().<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( value );</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160; </div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> cx = m_data-&gt;center.x();</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> cy = m_data-&gt;center.y();</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a> = m_data-&gt;radius;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="keywordflow">if</span> ( ( tval &lt; m_data-&gt;startAngle + 360.0 )</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        &amp;&amp; ( tval &gt; m_data-&gt;startAngle - 360.0 ) )</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    {</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">double</span> arc = qwtRadians( tval );</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160; </div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">double</span> sinArc = std::sin( arc );</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">double</span> cosArc = std::cos( arc );</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160; </div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">double</span> x1 = cx + <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a> * sinArc;</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">double</span> x2 = cx + ( <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a> + len ) * sinArc;</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">double</span> y1 = cy - <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a> * cosArc;</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">double</span> y2 = cy - ( <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a> + len ) * cosArc;</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160; </div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        <a class="code" href="class_qwt_painter.html#af7da8f2bd3bda731e76b564ba44ea6e7">QwtPainter::drawLine</a>( painter, x1, y1, x2, y2 );</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    }</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;}</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160; </div>
<div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="class_qwt_round_scale_draw.html#a3c274c4a3bb5fdfbfb211b2b44da5465">  224</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_round_scale_draw.html#a3c274c4a3bb5fdfbfb211b2b44da5465">QwtRoundScaleDraw::drawBackbone</a>( QPainter* painter )<span class="keyword"> const</span></div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> deg1 = <a class="code" href="class_qwt_abstract_scale_draw.html#a2582c30e82f8977877ac8044253f1fb8">scaleMap</a>().<a class="code" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1</a>();</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> deg2 = <a class="code" href="class_qwt_abstract_scale_draw.html#a2582c30e82f8977877ac8044253f1fb8">scaleMap</a>().<a class="code" href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">p2</a>();</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160; </div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> a1 = qRound( qwtMinF( deg1, deg2 ) - 90 );</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> a2 = qRound( qwtMaxF( deg1, deg2 ) - 90 );</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160; </div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a> = m_data-&gt;radius;</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> x = m_data-&gt;center.x() - <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a>;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> y = m_data-&gt;center.y() - <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a>;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160; </div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    painter-&gt;drawArc( QRectF( x, y, 2 * <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a>, 2 * <a class="code" href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">radius</a> ),</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;        -a2 * 16, ( a2 - a1 + 1 ) * 16 );          <span class="comment">// counterclockwise</span></div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;}</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160; </div>
<div class="line"><a name="l00255"></a><span class="lineno"><a class="line" href="class_qwt_round_scale_draw.html#a20e3ae2b75f28c8d015ad21ad61f8b49">  255</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_round_scale_draw.html#a20e3ae2b75f28c8d015ad21ad61f8b49">QwtRoundScaleDraw::extent</a>( <span class="keyword">const</span> QFont&amp; font )<span class="keyword"> const</span></div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    <span class="keywordtype">double</span> d = 0.0;</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160; </div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_scale_draw.html#a8a69a890d349a9e03c145b20b5835e8a">hasComponent</a>( <a class="code" href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5ad2709d7efbb6f1618f0a8a3b6cafae96">QwtAbstractScaleDraw::Labels</a> ) )</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    {</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a>&amp; sd = <a class="code" href="class_qwt_abstract_scale_draw.html#ad15e796d2fd8bd1e2cfa66715bf58e2e">scaleDiv</a>();</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_q_list.html">QList&lt; double &gt;</a>&amp; ticks = sd.<a class="code" href="class_qwt_scale_div.html#a838db100c7f0f8454bf8559e89cb4d41">ticks</a>( <a class="code" href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736cadda390d4186a0ff20ece95d986c1ae60">QwtScaleDiv::MajorTick</a> );</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; ticks.count(); i++ )</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;        {</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> value = ticks[i];</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;            <span class="keywordflow">if</span> ( !sd.<a class="code" href="class_qwt_scale_div.html#a8569bba7f423d06ccc791f4d31c3f225">contains</a>( value ) )</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;                <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160; </div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> tval = <a class="code" href="class_qwt_abstract_scale_draw.html#a2582c30e82f8977877ac8044253f1fb8">scaleMap</a>().<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( value );</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;            <span class="keywordflow">if</span> ( ( tval &lt; m_data-&gt;startAngle + 360 )</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;                &amp;&amp; ( tval &gt; m_data-&gt;startAngle - 360 ) )</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;            {</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;                <span class="keyword">const</span> <a class="code" href="class_qwt_text.html">QwtText</a> <a class="code" href="class_qwt_abstract_scale_draw.html#ac1d855f856b746559c41f4f06ec5442d">label</a> = <a class="code" href="class_qwt_abstract_scale_draw.html#a9325b265f351e9135cdbb9368e53f68a">tickLabel</a>( font, value );</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;                <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_scale_draw.html#ac1d855f856b746559c41f4f06ec5442d">label</a>.<a class="code" href="class_qwt_text.html#aa7a14283b812f50234fa0ee960e65307">isEmpty</a>() )</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;                    <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160; </div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">double</span> arc = qwtRadians( tval );</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160; </div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;                <span class="keyword">const</span> QSizeF sz = <a class="code" href="class_qwt_abstract_scale_draw.html#ac1d855f856b746559c41f4f06ec5442d">label</a>.<a class="code" href="class_qwt_text.html#a40ec54788db82cfb2941cff8c4621c15">textSize</a>( font );</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">double</span> off = qMax( sz.width(), sz.height() );</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160; </div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;                <span class="keywordtype">double</span> x = off * std::sin( arc );</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;                <span class="keywordtype">double</span> y = off * std::cos( arc );</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160; </div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">double</span> dist = std::sqrt( x * x + y * y );</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;                <span class="keywordflow">if</span> ( dist &gt; d )</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;                    d = dist;</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;            }</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;        }</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    }</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160; </div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_scale_draw.html#a8a69a890d349a9e03c145b20b5835e8a">hasComponent</a>( <a class="code" href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a1f23d080ce1229a0c4f70469e88acce0">QwtAbstractScaleDraw::Ticks</a> ) )</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    {</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;        d += <a class="code" href="class_qwt_abstract_scale_draw.html#ab3713ea053eb3d6327b18a3d14c7b820">maxTickLength</a>();</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    }</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160; </div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_scale_draw.html#a8a69a890d349a9e03c145b20b5835e8a">hasComponent</a>( <a class="code" href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a61a6c4f4dec2b089edfb655e2b21c3a2">QwtAbstractScaleDraw::Backbone</a> ) )</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    {</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        d += qwtMaxF( <a class="code" href="class_qwt_abstract_scale_draw.html#ad0e889e3a5b5af8adb0d6a507e7fbc95">penWidthF</a>(), 1.0 );</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    }</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160; </div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_scale_draw.html#a8a69a890d349a9e03c145b20b5835e8a">hasComponent</a>( <a class="code" href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5ad2709d7efbb6f1618f0a8a3b6cafae96">QwtAbstractScaleDraw::Labels</a> ) &amp;&amp;</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;        ( <a class="code" href="class_qwt_abstract_scale_draw.html#a8a69a890d349a9e03c145b20b5835e8a">hasComponent</a>( <a class="code" href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a1f23d080ce1229a0c4f70469e88acce0">QwtAbstractScaleDraw::Ticks</a> ) ||</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        <a class="code" href="class_qwt_abstract_scale_draw.html#a8a69a890d349a9e03c145b20b5835e8a">hasComponent</a>( <a class="code" href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a61a6c4f4dec2b089edfb655e2b21c3a2">QwtAbstractScaleDraw::Backbone</a> ) ) )</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    {</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;        d += <a class="code" href="class_qwt_abstract_scale_draw.html#ad3b290a76426a1a22a870e84c1655666">spacing</a>();</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    }</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160; </div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    d = qwtMaxF( d, <a class="code" href="class_qwt_abstract_scale_draw.html#abdd97b4bedda111df8208ec96a894f8f">minimumExtent</a>() );</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160; </div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    <span class="keywordflow">return</span> d;</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;}</div>
<div class="ttc" id="aclass_q_list_html"><div class="ttname"><a href="class_q_list.html">QList&lt; double &gt;</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a2582c30e82f8977877ac8044253f1fb8"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a2582c30e82f8977877ac8044253f1fb8">QwtAbstractScaleDraw::scaleMap</a></div><div class="ttdeci">const QwtScaleMap &amp; scaleMap() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00121">qwt_abstract_scale_draw.cpp:121</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a26215d06a4d48adf401d0aa05d4193c5a1f23d080ce1229a0c4f70469e88acce0"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a1f23d080ce1229a0c4f70469e88acce0">QwtAbstractScaleDraw::Ticks</a></div><div class="ttdeci">@ Ticks</div><div class="ttdoc">Ticks.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8h_source.html#l00045">qwt_abstract_scale_draw.h:45</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a26215d06a4d48adf401d0aa05d4193c5a61a6c4f4dec2b089edfb655e2b21c3a2"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a61a6c4f4dec2b089edfb655e2b21c3a2">QwtAbstractScaleDraw::Backbone</a></div><div class="ttdeci">@ Backbone</div><div class="ttdoc">Backbone = the line where the ticks are located.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8h_source.html#l00042">qwt_abstract_scale_draw.h:42</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a26215d06a4d48adf401d0aa05d4193c5ad2709d7efbb6f1618f0a8a3b6cafae96"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5ad2709d7efbb6f1618f0a8a3b6cafae96">QwtAbstractScaleDraw::Labels</a></div><div class="ttdeci">@ Labels</div><div class="ttdoc">Labels.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8h_source.html#l00049">qwt_abstract_scale_draw.h:48</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a52fe17714fe96564b0d88af27e96e58f"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a52fe17714fe96564b0d88af27e96e58f">QwtAbstractScaleDraw::tickLength</a></div><div class="ttdeci">double tickLength(QwtScaleDiv::TickType) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00338">qwt_abstract_scale_draw.cpp:338</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a8a69a890d349a9e03c145b20b5835e8a"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a8a69a890d349a9e03c145b20b5835e8a">QwtAbstractScaleDraw::hasComponent</a></div><div class="ttdeci">bool hasComponent(ScaleComponent) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00095">qwt_abstract_scale_draw.cpp:95</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a9325b265f351e9135cdbb9368e53f68a"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a9325b265f351e9135cdbb9368e53f68a">QwtAbstractScaleDraw::tickLabel</a></div><div class="ttdeci">const QwtText &amp; tickLabel(const QFont &amp;, double value) const</div><div class="ttdoc">Convert a value into its representing label and cache it.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00393">qwt_abstract_scale_draw.cpp:393</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_ab3713ea053eb3d6327b18a3d14c7b820"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#ab3713ea053eb3d6327b18a3d14c7b820">QwtAbstractScaleDraw::maxTickLength</a></div><div class="ttdeci">double maxTickLength() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00355">qwt_abstract_scale_draw.cpp:355</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_abdd97b4bedda111df8208ec96a894f8f"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#abdd97b4bedda111df8208ec96a894f8f">QwtAbstractScaleDraw::minimumExtent</a></div><div class="ttdeci">double minimumExtent() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00302">qwt_abstract_scale_draw.cpp:302</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_ac1d855f856b746559c41f4f06ec5442d"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#ac1d855f856b746559c41f4f06ec5442d">QwtAbstractScaleDraw::label</a></div><div class="ttdeci">virtual QwtText label(double) const</div><div class="ttdoc">Convert a value into its representing label.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00375">qwt_abstract_scale_draw.cpp:375</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_ad0e889e3a5b5af8adb0d6a507e7fbc95"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#ad0e889e3a5b5af8adb0d6a507e7fbc95">QwtAbstractScaleDraw::penWidthF</a></div><div class="ttdeci">qreal penWidthF() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00156">qwt_abstract_scale_draw.cpp:156</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_ad15e796d2fd8bd1e2cfa66715bf58e2e"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#ad15e796d2fd8bd1e2cfa66715bf58e2e">QwtAbstractScaleDraw::scaleDiv</a></div><div class="ttdeci">const QwtScaleDiv &amp; scaleDiv() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00133">qwt_abstract_scale_draw.cpp:133</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_ad3b290a76426a1a22a870e84c1655666"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#ad3b290a76426a1a22a870e84c1655666">QwtAbstractScaleDraw::spacing</a></div><div class="ttdeci">double spacing() const</div><div class="ttdoc">Get the spacing.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00271">qwt_abstract_scale_draw.cpp:271</a></div></div>
<div class="ttc" id="aclass_qwt_painter_html_af7da8f2bd3bda731e76b564ba44ea6e7"><div class="ttname"><a href="class_qwt_painter.html#af7da8f2bd3bda731e76b564ba44ea6e7">QwtPainter::drawLine</a></div><div class="ttdeci">static void drawLine(QPainter *, qreal x1, qreal y1, qreal x2, qreal y2)</div><div class="ttdoc">Wrapper for QPainter::drawLine()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter_8h_source.html#l00154">qwt_painter.h:154</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_a20e3ae2b75f28c8d015ad21ad61f8b49"><div class="ttname"><a href="class_qwt_round_scale_draw.html#a20e3ae2b75f28c8d015ad21ad61f8b49">QwtRoundScaleDraw::extent</a></div><div class="ttdeci">virtual double extent(const QFont &amp;) const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8cpp_source.html#l00255">qwt_round_scale_draw.cpp:255</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_a219e0db15594f297ae6ff769fd6c0485"><div class="ttname"><a href="class_qwt_round_scale_draw.html#a219e0db15594f297ae6ff769fd6c0485">QwtRoundScaleDraw::setRadius</a></div><div class="ttdeci">void setRadius(double radius)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8cpp_source.html#l00066">qwt_round_scale_draw.cpp:66</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_a33cf08c74686051f0a8d66984be8aec5"><div class="ttname"><a href="class_qwt_round_scale_draw.html#a33cf08c74686051f0a8d66984be8aec5">QwtRoundScaleDraw::center</a></div><div class="ttdeci">QPointF center() const</div><div class="ttdoc">Get the center of the scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8cpp_source.html#l00096">qwt_round_scale_draw.cpp:96</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_a3c274c4a3bb5fdfbfb211b2b44da5465"><div class="ttname"><a href="class_qwt_round_scale_draw.html#a3c274c4a3bb5fdfbfb211b2b44da5465">QwtRoundScaleDraw::drawBackbone</a></div><div class="ttdeci">virtual void drawBackbone(QPainter *) const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8cpp_source.html#l00224">qwt_round_scale_draw.cpp:224</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_a4e09df3cb4c1868264653a32ccaebebf"><div class="ttname"><a href="class_qwt_round_scale_draw.html#a4e09df3cb4c1868264653a32ccaebebf">QwtRoundScaleDraw::drawLabel</a></div><div class="ttdeci">virtual void drawLabel(QPainter *, double value) const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8cpp_source.html#l00145">qwt_round_scale_draw.cpp:145</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_a5d85678fdb9fbb4d622425aab9ecc681"><div class="ttname"><a href="class_qwt_round_scale_draw.html#a5d85678fdb9fbb4d622425aab9ecc681">QwtRoundScaleDraw::setAngleRange</a></div><div class="ttdeci">void setAngleRange(double angle1, double angle2)</div><div class="ttdoc">Adjust the baseline circle segment for round scales.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8cpp_source.html#l00118">qwt_round_scale_draw.cpp:118</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_a81583432e629cd8a14524b05fabb4731"><div class="ttname"><a href="class_qwt_round_scale_draw.html#a81583432e629cd8a14524b05fabb4731">QwtRoundScaleDraw::~QwtRoundScaleDraw</a></div><div class="ttdeci">virtual ~QwtRoundScaleDraw()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8cpp_source.html#l00053">qwt_round_scale_draw.cpp:53</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_a981fb525cffd8ee5b28e659f7f046b65"><div class="ttname"><a href="class_qwt_round_scale_draw.html#a981fb525cffd8ee5b28e659f7f046b65">QwtRoundScaleDraw::radius</a></div><div class="ttdeci">double radius() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8cpp_source.html#l00079">qwt_round_scale_draw.cpp:79</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_a9c44d19488567825d826528b701587c8"><div class="ttname"><a href="class_qwt_round_scale_draw.html#a9c44d19488567825d826528b701587c8">QwtRoundScaleDraw::QwtRoundScaleDraw</a></div><div class="ttdeci">QwtRoundScaleDraw()</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8cpp_source.html#l00044">qwt_round_scale_draw.cpp:44</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_af7e08b85826c5e1e5b1762fa07830107"><div class="ttname"><a href="class_qwt_round_scale_draw.html#af7e08b85826c5e1e5b1762fa07830107">QwtRoundScaleDraw::moveCenter</a></div><div class="ttdeci">void moveCenter(double x, double y)</div><div class="ttdoc">Move the center of the scale draw, leaving the radius unchanged.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8h_source.html#l00064">qwt_round_scale_draw.h:64</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_afe622c468eb6229b40adde688de21432"><div class="ttname"><a href="class_qwt_round_scale_draw.html#afe622c468eb6229b40adde688de21432">QwtRoundScaleDraw::drawTick</a></div><div class="ttdeci">virtual void drawTick(QPainter *, double value, double len) const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8cpp_source.html#l00190">qwt_round_scale_draw.cpp:190</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html"><div class="ttname"><a href="class_qwt_scale_div.html">QwtScaleDiv</a></div><div class="ttdoc">A class representing a scale division.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8h_source.html#l00033">qwt_scale_div.h:34</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html_a838db100c7f0f8454bf8559e89cb4d41"><div class="ttname"><a href="class_qwt_scale_div.html#a838db100c7f0f8454bf8559e89cb4d41">QwtScaleDiv::ticks</a></div><div class="ttdeci">QList&lt; double &gt; ticks(int tickType) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8cpp_source.html#l00309">qwt_scale_div.cpp:309</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html_a8569bba7f423d06ccc791f4d31c3f225"><div class="ttname"><a href="class_qwt_scale_div.html#a8569bba7f423d06ccc791f4d31c3f225">QwtScaleDiv::contains</a></div><div class="ttdeci">bool contains(double value) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8cpp_source.html#l00212">qwt_scale_div.cpp:212</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html_af21aedaa886dd5e067cf63505838736cadda390d4186a0ff20ece95d986c1ae60"><div class="ttname"><a href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736cadda390d4186a0ff20ece95d986c1ae60">QwtScaleDiv::MajorTick</a></div><div class="ttdeci">@ MajorTick</div><div class="ttdoc">Major ticks.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8h_source.html#l00049">qwt_scale_div.h:49</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_a4d03a9fea3bd9b66a0b882b8b1a58f4b"><div class="ttname"><a href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">QwtScaleMap::p1</a></div><div class="ttdeci">double p1() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00099">qwt_scale_map.h:99</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_a504f1627e0e02ddac03d2ce46507b865"><div class="ttname"><a href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">QwtScaleMap::transform</a></div><div class="ttdeci">double transform(double s) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00137">qwt_scale_map.h:137</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_a994240e446986112f196a65657dc9755"><div class="ttname"><a href="class_qwt_scale_map.html#a994240e446986112f196a65657dc9755">QwtScaleMap::setPaintInterval</a></div><div class="ttdeci">void setPaintInterval(double p1, double p2)</div><div class="ttdoc">Specify the borders of the paint device interval.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8cpp_source.html#l00119">qwt_scale_map.cpp:119</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_acd78b70fae83854a148fa3d08b13c261"><div class="ttname"><a href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">QwtScaleMap::p2</a></div><div class="ttdeci">double p2() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00107">qwt_scale_map.h:107</a></div></div>
<div class="ttc" id="aclass_qwt_text_html"><div class="ttname"><a href="class_qwt_text.html">QwtText</a></div><div class="ttdoc">A class representing a text.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00051">qwt_text.h:52</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a40ec54788db82cfb2941cff8c4621c15"><div class="ttname"><a href="class_qwt_text.html#a40ec54788db82cfb2941cff8c4621c15">QwtText::textSize</a></div><div class="ttdeci">QSizeF textSize() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00570">qwt_text.cpp:570</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_aa7a14283b812f50234fa0ee960e65307"><div class="ttname"><a href="class_qwt_text.html#aa7a14283b812f50234fa0ee960e65307">QwtText::isEmpty</a></div><div class="ttdeci">bool isEmpty() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00739">qwt_text.cpp:739</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_ad81ee227016361a0362081bc67c301da"><div class="ttname"><a href="class_qwt_text.html#ad81ee227016361a0362081bc67c301da">QwtText::draw</a></div><div class="ttdeci">void draw(QPainter *painter, const QRectF &amp;rect) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00615">qwt_text.cpp:615</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>qwt_round_scale_draw.cpp</b></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
